package com.twd.allcomponent.i18n.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.twd.allcomponent.createTable.annotation.Constraints;
import com.twd.allcomponent.createTable.annotation.CreateTableName;
import com.twd.allcomponent.createTable.annotation.CreateType;
import lombok.AllArgsConstructor;
import lombok.Data;

@TableName("twd_language")
@AllArgsConstructor
@Data
@CreateTableName(name="twd_language")
public class LocaleLanguage {

    @CreateType(type = "int(11)",name = "id",
            constraints = @Constraints(
                    primarykey=true,allowNull = false,autoincrement = true))
    private Long id;
    @CreateType(type="varchar(50)",name="code")
    private String code;
    @CreateType(type="varchar(50)",name="message")
    private String message;
    @CreateType(type="varchar(50)",name="locale")
    private String locale;
}
